import { createApp } from 'vue'
import pinia from '@/stores/index.ts'

import mitt from 'mitt'
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'

// import '@/plugins/unocss'

import router from '@/router/index'
import { i18n } from '@/i18n/index'
import { elSvg } from '@/utils/svg.ts'

import App from './App.vue'
const app = createApp(App)
// 挂载到全局
app.config.globalProperties.$mitt = mitt()
// 注册icon
elSvg(app)
app.use(pinia).use(router).use(i18n).use(ElementPlus).mount('#app')
